﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IceDog.SmallProject.EnumFlagsAttribute
{
    /// <summary>
    /// 用户行为
    /// </summary>
    /// <remarks>一个博客网站上用户可以进行操作的行为枚举</remarks>
    [Flags]// add flags 特性
    public enum UserAction
    {
        /// <summary>
        /// 无任何操作
        /// </summary>
        None = 0,
        /// <summary>
        /// 预览
        /// </summary>
        PreviewArticle = 1,
        /// <summary>
        /// 创建
        /// </summary>
        CreateArticle = 2,
        /// <summary>
        /// 编辑
        /// </summary>
        EditArticle = 4,
        /// <summary>
        /// 删除
        /// </summary>
        DeleteArticle = 8,
        /// <summary>
        /// 评论
        /// </summary>
        CommentArticle = 16,
        /// <summary>
        /// 点赞
        /// </summary>
        LikeArticle = 32,
        /// <summary>
        /// 收藏
        /// </summary>
        CollectionArticle = 64
    }
}
